home *** CD-ROM | disk | FTP | other *** search
/ Chip: Hang es video / CHIP_ZENESZERKESZTO_2005.ISO / audio_3 / visual / robotfunk / setup.exe / {app} / main.dxr / ui_158.ls < prev    next >
Encoding:
Text File  |  2003-11-19  |  1.0 KB  |  39 lines

  1. property md
  2. global preloadlist, select, fpslist, curscript
  3.  
  4. on mouseDown me
  5.   md = 1
  6. end
  7.  
  8. on mouseLeave me
  9.   md = 0
  10. end
  11.  
  12. on mouseUp me
  13.   curscript = "saveclip"
  14.   if md then
  15.     if (select > 0) and (preloadlist[select].ilk = #list) then
  16.       if preloadlist[select].count > 0 then
  17.         savepath = baGetFilename("save", "c:", "untitled.clp", "Flowmotion Clips|*.clp", 32, "Save new file", 0, 400, 300)
  18.         if savepath = EMPTY then
  19.           exit
  20.         end if
  21.         fileLink = new(xtra("vList"), savepath)
  22.         pl = []
  23.         repeat with j = 1 to preloadlist[select].count
  24.           if preloadlist[select].count >= j then
  25.             if preloadlist[select][j].ilk = #image then
  26.               pl[j] = preloadlist[select][j].duplicate()
  27.               preloadlist[select][j] = pl[j]
  28.             end if
  29.           end if
  30.         end repeat
  31.         pl[j + 1] = member(select, "thumbnails").image.duplicate()
  32.         pl[j + 2] = fpslist[select]
  33.         write(fileLink, pl)
  34.       end if
  35.     end if
  36.   end if
  37.   md = 0
  38. end
  39.